<#import "/macro/pmmacro.ftl" as pmmacro >
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${basepath}/css/pm.css" type="text/css">
<style type="text/css">
body{
	padding:0px;
	margin:0px;
}
#divresult table{
	width: 99%;
	margin-top:20px;
}
#divresult table th,td{
	border: 1px solid #cccccc;
	font-size: 14px;
	font-family: serif;
	text-align :left;
}
</style>
</head>

<body>

<div id="divresult" style="min-height:500px;">
<div>
<table id="material_table" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<td>物料名称</td>
			<td>库存数量</td>
			<td>单位</td>
			<td>操作</td>
		</tr>
	</thead>
	<tbody id="material_tbody">
		<#list pager.result as material>
			<tr>
				<td>${material.materialName!""}</td>
				<td>
					${material.inventoryNumber}						
				</td>
				<td>
					${material.materialUnit!""}
				</td>
				<td>
					<a href="${basepath}/material/info.htm?materialId=${material.id}" target="_parent" >查看详情</a>
				</td>
			</tr>
		</#list>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="5">
				<@pmmacro.pagetoolv2 formid="materialform"/>
			</td>
		</tr>
	</tfoot>
</table>
</div>
</div>
</body>
<script type="text/javascript">
(function(){
	window.parent.document.getElementById("resultpage").scrolling='no';
})();
</script>
</html>